﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020009BD RID: 2493
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class JoinLineupCsReq : IMessage<JoinLineupCsReq>, IMessage, IEquatable<JoinLineupCsReq>, IDeepCloneable<JoinLineupCsReq>, IBufferMessage
	{
		// Token: 0x17001F8F RID: 8079
		// (get) Token: 0x06006FD5 RID: 28629 RVA: 0x0012B863 File Offset: 0x00129A63
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<JoinLineupCsReq> Parser
		{
			get
			{
				return JoinLineupCsReq._parser;
			}
		}

		// Token: 0x17001F90 RID: 8080
		// (get) Token: 0x06006FD6 RID: 28630 RVA: 0x0012B86A File Offset: 0x00129A6A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return JoinLineupCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001F91 RID: 8081
		// (get) Token: 0x06006FD7 RID: 28631 RVA: 0x0012B87C File Offset: 0x00129A7C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return JoinLineupCsReq.Descriptor;
			}
		}

		// Token: 0x06006FD8 RID: 28632 RVA: 0x0012B883 File Offset: 0x00129A83
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public JoinLineupCsReq()
		{
		}

		// Token: 0x06006FD9 RID: 28633 RVA: 0x0012B88C File Offset: 0x00129A8C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public JoinLineupCsReq(JoinLineupCsReq other) : this()
		{
			this.isVirtual_ = other.isVirtual_;
			this.avatarType_ = other.avatarType_;
			this.baseAvatarId_ = other.baseAvatarId_;
			this.planeId_ = other.planeId_;
			this.slot_ = other.slot_;
			this.extraLineupType_ = other.extraLineupType_;
			this.index_ = other.index_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06006FDA RID: 28634 RVA: 0x0012B904 File Offset: 0x00129B04
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public JoinLineupCsReq Clone()
		{
			return new JoinLineupCsReq(this);
		}

		// Token: 0x17001F92 RID: 8082
		// (get) Token: 0x06006FDB RID: 28635 RVA: 0x0012B90C File Offset: 0x00129B0C
		// (set) Token: 0x06006FDC RID: 28636 RVA: 0x0012B914 File Offset: 0x00129B14
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsVirtual
		{
			get
			{
				return this.isVirtual_;
			}
			set
			{
				this.isVirtual_ = value;
			}
		}

		// Token: 0x17001F93 RID: 8083
		// (get) Token: 0x06006FDD RID: 28637 RVA: 0x0012B91D File Offset: 0x00129B1D
		// (set) Token: 0x06006FDE RID: 28638 RVA: 0x0012B925 File Offset: 0x00129B25
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AvatarType AvatarType
		{
			get
			{
				return this.avatarType_;
			}
			set
			{
				this.avatarType_ = value;
			}
		}

		// Token: 0x17001F94 RID: 8084
		// (get) Token: 0x06006FDF RID: 28639 RVA: 0x0012B92E File Offset: 0x00129B2E
		// (set) Token: 0x06006FE0 RID: 28640 RVA: 0x0012B936 File Offset: 0x00129B36
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BaseAvatarId
		{
			get
			{
				return this.baseAvatarId_;
			}
			set
			{
				this.baseAvatarId_ = value;
			}
		}

		// Token: 0x17001F95 RID: 8085
		// (get) Token: 0x06006FE1 RID: 28641 RVA: 0x0012B93F File Offset: 0x00129B3F
		// (set) Token: 0x06006FE2 RID: 28642 RVA: 0x0012B947 File Offset: 0x00129B47
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint PlaneId
		{
			get
			{
				return this.planeId_;
			}
			set
			{
				this.planeId_ = value;
			}
		}

		// Token: 0x17001F96 RID: 8086
		// (get) Token: 0x06006FE3 RID: 28643 RVA: 0x0012B950 File Offset: 0x00129B50
		// (set) Token: 0x06006FE4 RID: 28644 RVA: 0x0012B958 File Offset: 0x00129B58
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Slot
		{
			get
			{
				return this.slot_;
			}
			set
			{
				this.slot_ = value;
			}
		}

		// Token: 0x17001F97 RID: 8087
		// (get) Token: 0x06006FE5 RID: 28645 RVA: 0x0012B961 File Offset: 0x00129B61
		// (set) Token: 0x06006FE6 RID: 28646 RVA: 0x0012B969 File Offset: 0x00129B69
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ExtraLineupType ExtraLineupType
		{
			get
			{
				return this.extraLineupType_;
			}
			set
			{
				this.extraLineupType_ = value;
			}
		}

		// Token: 0x17001F98 RID: 8088
		// (get) Token: 0x06006FE7 RID: 28647 RVA: 0x0012B972 File Offset: 0x00129B72
		// (set) Token: 0x06006FE8 RID: 28648 RVA: 0x0012B97A File Offset: 0x00129B7A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Index
		{
			get
			{
				return this.index_;
			}
			set
			{
				this.index_ = value;
			}
		}

		// Token: 0x06006FE9 RID: 28649 RVA: 0x0012B983 File Offset: 0x00129B83
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as JoinLineupCsReq);
		}

		// Token: 0x06006FEA RID: 28650 RVA: 0x0012B994 File Offset: 0x00129B94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(JoinLineupCsReq other)
		{
			return other != null && (other == this || (this.IsVirtual == other.IsVirtual && this.AvatarType == other.AvatarType && this.BaseAvatarId == other.BaseAvatarId && this.PlaneId == other.PlaneId && this.Slot == other.Slot && this.ExtraLineupType == other.ExtraLineupType && this.Index == other.Index && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06006FEB RID: 28651 RVA: 0x0012BA30 File Offset: 0x00129C30
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.IsVirtual)
			{
				num ^= this.IsVirtual.GetHashCode();
			}
			if (this.AvatarType != AvatarType.None)
			{
				num ^= this.AvatarType.GetHashCode();
			}
			if (this.BaseAvatarId != 0U)
			{
				num ^= this.BaseAvatarId.GetHashCode();
			}
			if (this.PlaneId != 0U)
			{
				num ^= this.PlaneId.GetHashCode();
			}
			if (this.Slot != 0U)
			{
				num ^= this.Slot.GetHashCode();
			}
			if (this.ExtraLineupType != ExtraLineupType.LineupNone)
			{
				num ^= this.ExtraLineupType.GetHashCode();
			}
			if (this.Index != 0U)
			{
				num ^= this.Index.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06006FEC RID: 28652 RVA: 0x0012BB12 File Offset: 0x00129D12
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06006FED RID: 28653 RVA: 0x0012BB1A File Offset: 0x00129D1A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06006FEE RID: 28654 RVA: 0x0012BB24 File Offset: 0x00129D24
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Index != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.Index);
			}
			if (this.BaseAvatarId != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.BaseAvatarId);
			}
			if (this.IsVirtual)
			{
				output.WriteRawTag(40);
				output.WriteBool(this.IsVirtual);
			}
			if (this.ExtraLineupType != ExtraLineupType.LineupNone)
			{
				output.WriteRawTag(72);
				output.WriteEnum((int)this.ExtraLineupType);
			}
			if (this.AvatarType != AvatarType.None)
			{
				output.WriteRawTag(80);
				output.WriteEnum((int)this.AvatarType);
			}
			if (this.Slot != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.Slot);
			}
			if (this.PlaneId != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.PlaneId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06006FEF RID: 28655 RVA: 0x0012BC08 File Offset: 0x00129E08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.IsVirtual)
			{
				num += 2;
			}
			if (this.AvatarType != AvatarType.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.AvatarType);
			}
			if (this.BaseAvatarId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BaseAvatarId);
			}
			if (this.PlaneId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.PlaneId);
			}
			if (this.Slot != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Slot);
			}
			if (this.ExtraLineupType != ExtraLineupType.LineupNone)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.ExtraLineupType);
			}
			if (this.Index != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Index);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06006FF0 RID: 28656 RVA: 0x0012BCCC File Offset: 0x00129ECC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(JoinLineupCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.IsVirtual)
			{
				this.IsVirtual = other.IsVirtual;
			}
			if (other.AvatarType != AvatarType.None)
			{
				this.AvatarType = other.AvatarType;
			}
			if (other.BaseAvatarId != 0U)
			{
				this.BaseAvatarId = other.BaseAvatarId;
			}
			if (other.PlaneId != 0U)
			{
				this.PlaneId = other.PlaneId;
			}
			if (other.Slot != 0U)
			{
				this.Slot = other.Slot;
			}
			if (other.ExtraLineupType != ExtraLineupType.LineupNone)
			{
				this.ExtraLineupType = other.ExtraLineupType;
			}
			if (other.Index != 0U)
			{
				this.Index = other.Index;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06006FF1 RID: 28657 RVA: 0x0012BD80 File Offset: 0x00129F80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06006FF2 RID: 28658 RVA: 0x0012BD8C File Offset: 0x00129F8C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 40U)
				{
					if (num == 8U)
					{
						this.Index = input.ReadUInt32();
						continue;
					}
					if (num == 32U)
					{
						this.BaseAvatarId = input.ReadUInt32();
						continue;
					}
					if (num == 40U)
					{
						this.IsVirtual = input.ReadBool();
						continue;
					}
				}
				else if (num <= 80U)
				{
					if (num == 72U)
					{
						this.ExtraLineupType = (ExtraLineupType)input.ReadEnum();
						continue;
					}
					if (num == 80U)
					{
						this.AvatarType = (AvatarType)input.ReadEnum();
						continue;
					}
				}
				else
				{
					if (num == 104U)
					{
						this.Slot = input.ReadUInt32();
						continue;
					}
					if (num == 120U)
					{
						this.PlaneId = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04002AA7 RID: 10919
		private static readonly MessageParser<JoinLineupCsReq> _parser = new MessageParser<JoinLineupCsReq>(() => new JoinLineupCsReq());

		// Token: 0x04002AA8 RID: 10920
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002AA9 RID: 10921
		public const int IsVirtualFieldNumber = 5;

		// Token: 0x04002AAA RID: 10922
		private bool isVirtual_;

		// Token: 0x04002AAB RID: 10923
		public const int AvatarTypeFieldNumber = 10;

		// Token: 0x04002AAC RID: 10924
		private AvatarType avatarType_;

		// Token: 0x04002AAD RID: 10925
		public const int BaseAvatarIdFieldNumber = 4;

		// Token: 0x04002AAE RID: 10926
		private uint baseAvatarId_;

		// Token: 0x04002AAF RID: 10927
		public const int PlaneIdFieldNumber = 15;

		// Token: 0x04002AB0 RID: 10928
		private uint planeId_;

		// Token: 0x04002AB1 RID: 10929
		public const int SlotFieldNumber = 13;

		// Token: 0x04002AB2 RID: 10930
		private uint slot_;

		// Token: 0x04002AB3 RID: 10931
		public const int ExtraLineupTypeFieldNumber = 9;

		// Token: 0x04002AB4 RID: 10932
		private ExtraLineupType extraLineupType_;

		// Token: 0x04002AB5 RID: 10933
		public const int IndexFieldNumber = 1;

		// Token: 0x04002AB6 RID: 10934
		private uint index_;
	}
}
